package com.dongjiantong.user.service;

import com.dongjiantong.common.model.Response;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.user.model.LoginUser;
import com.dongjiantong.user.enums.UserEnum;
import com.fasterxml.jackson.databind.ser.Serializers;


/**
 * Created by cao on 2017/11/7.
 */
public interface SSOLoginService extends BaseService<LoginUser> {


    /**
     * 登录处理
     *
     * @param username
     * @param password
     * @return
     */
    Response<LoginUser> doLogin(String username, String password);


    /**
     * 检查用户名是否存在
     *
     * @param username
     * @return
     */
    Response<Boolean> checkUserName(String username);

    /**
     * 禁用客户
     *
     * @param userId
     * @return
     */
    boolean updateUserLoginStatus(long userId, UserEnum userEnum);
}
